package com.chixing.day03;

/**
 * 该类表示的是: 公司类
 * 封装了所有公司的属性和方法
 * 访问修饰符
 * 属性用public 修饰存在的问题:
 * (1)若修改了属性名,可维护性差,其他地方也得跟着修改
 * (2)元信息(meta)被暴露出来,安全性低
 * 解决方案:
 * public ---> private
 * public: 由public 修饰的属性与方法,其他类都能访问
 * private: 由private 修饰的属性与方法,只能本类内部访问
 */

public class Company {
    //属性
    //成员变量(字段)
    private int companyId;
    private String companyName;
    private String companyType;
    private String companyAddress;
    private long companyTelephon;


    //属性赋值与取值
    //getter and setter
    //成员方法 method
    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public long getCompanyTelephon() {
        return companyTelephon;
    }

    public void setCompanyTelephon(long companyTelephon) {
        this.companyTelephon = companyTelephon;
    }

    //方法
    //发布简历
    public void publishJob() {

    }

    //查看简历
    public void getResume() {

    }
}